<ion-view view-title="小黑板" class="xg-percar-view" ng-controller="newsBlackBoardCtrl">
  <ion-nav-buttons side="left">
    <a class="ion-ios-home-outline" href="#/tab/home"></a>
  </ion-nav-buttons>
  <ion-nav-buttons side="right">
    <a class="ion-edit" href="#/newsBlackBoardAdd"></a>
  </ion-nav-buttons>
  <ion-content class="xg-percar-content">
    <ion-list class="xg-percar-ul float-fix">
      <ion-item class="item-remove-animate item-avatar item-icon-right xg-percar-item xg-percar-item-work"  ng-repeat="blackBoard in blackBoards">
       <div ng-click="data.newsDetail(blackBoard)">
        <div class="float-fix">
          <span class="ion-ios-personadd-outline"></span>
          <p>发布者：{{blackBoard.staffName}}</p>
        </div>
        <div class="float-fix">
          <span class="ion-pin">
          </span>
          <p>发布日期：<span class="percar-deadline">{{blackBoard.date|limitTo:10}}</span></p>
        </div>
        <div class="float-fix">
          <span class="ion-clipboard"></span>
          <p>标题：<span class="percar-sort">{{blackBoard.topic}}</span></p>
        </div>
        <div class="float-fix">
          <span class="ion-ios-list-outline"></span>
          <p>内容：<i ng-bind-html="blackBoard.content|limitTo:45"></i></p>
        </div>
        <i class="icon ion-chevron-right icon-accessory"></i>
       </div>
        <ion-option-button class="button-assertive" ng-if="data.staffid==blackBoard.staffId" ng-click="data.delete(blackBoard)">
          删除
        </ion-option-button>
      </ion-item>
    </ion-list>
  </ion-content>
</ion-view>
